package org.slf4j.impl;

import org.slf4j.Logger;
import org.slf4j.Marker;

import com.db.logging.LogLevel;

public final class LoggerAdapter implements Logger {
  
  private final com.db.logging.Logger logger;
  
  public LoggerAdapter(com.db.logging.Logger logger) {
    this.logger = logger;
  }
  
  @Override
  public String getName() {
    return logger.getLoggerName();
  }
  
  @Override
  public boolean isTraceEnabled() {
    return false;
  }
  
  @Override
  public void trace(String msg) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void trace(String format, Object arg) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void trace(String format, Object arg1, Object arg2) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void trace(String format, Object... arguments) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void trace(String msg, Throwable t) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public boolean isTraceEnabled(Marker marker) {
    return false;
  }
  
  @Override
  public void trace(Marker marker, String msg) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void trace(Marker marker, String format, Object arg) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void trace(Marker marker, String format, Object arg1, Object arg2) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void trace(Marker marker, String format, Object... argArray) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void trace(Marker marker, String msg, Throwable t) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public boolean isDebugEnabled() {
    return true;

  }
  
  @Override
  public void debug(String msg) {
    logger.log(LogLevel.DEBUG, msg);
    
  }
  
  @Override
  public void debug(String format, Object arg) {
    String msg = format.replaceFirst("\\{\\}", arg.toString());
    logger.log(LogLevel.DEBUG, msg);
    
  }
  
  @Override
  public void debug(String format, Object arg1, Object arg2) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void debug(String format, Object... arguments) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void debug(String msg, Throwable t) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public boolean isDebugEnabled(Marker marker) {
    return false;

  }
  
  @Override
  public void debug(Marker marker, String msg) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void debug(Marker marker, String format, Object arg) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void debug(Marker marker, String format, Object arg1, Object arg2) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void debug(Marker marker, String format, Object... arguments) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void debug(Marker marker, String msg, Throwable t) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public boolean isInfoEnabled() {
    return true;

  }
  
  @Override
  public void info(String msg) {
    logger.log(LogLevel.INFO, msg);
    
  }
  
  @Override
  public void info(String format, Object arg) {
    String msg = format.replaceFirst("\\{\\}", arg.toString());
    logger.log(LogLevel.INFO, msg);
  }
  
  @Override
  public void info(String format, Object arg1, Object arg2) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void info(String format, Object... arguments) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void info(String msg, Throwable t) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public boolean isInfoEnabled(Marker marker) {
    return false;
  }
  
  @Override
  public void info(Marker marker, String msg) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void info(Marker marker, String format, Object arg) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void info(Marker marker, String format, Object arg1, Object arg2) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void info(Marker marker, String format, Object... arguments) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void info(Marker marker, String msg, Throwable t) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public boolean isWarnEnabled() {
    return false;

  }
  
  @Override
  public void warn(String msg) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void warn(String format, Object arg) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void warn(String format, Object... arguments) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void warn(String format, Object arg1, Object arg2) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void warn(String msg, Throwable t) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public boolean isWarnEnabled(Marker marker) {
    return false;

  }
  
  @Override
  public void warn(Marker marker, String msg) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void warn(Marker marker, String format, Object arg) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void warn(Marker marker, String format, Object arg1, Object arg2) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void warn(Marker marker, String format, Object... arguments) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void warn(Marker marker, String msg, Throwable t) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public boolean isErrorEnabled() {
    return true;

  }
  
  @Override
  public void error(String msg) {
    logger.log(LogLevel.ERROR, msg);
    
  }
  
  @Override
  public void error(String format, Object arg) {
    String msg = format.replaceFirst("\\{\\}", arg.toString());
    logger.log(LogLevel.ERROR, msg);
    
  }
  
  @Override
  public void error(String format, Object arg1, Object arg2) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void error(String format, Object... arguments) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void error(String msg, Throwable t) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public boolean isErrorEnabled(Marker marker) {
    return false;

  }
  
  @Override
  public void error(Marker marker, String msg) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void error(Marker marker, String format, Object arg) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void error(Marker marker, String format, Object arg1, Object arg2) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void error(Marker marker, String format, Object... arguments) {
    throw new UnsupportedOperationException();
    
  }
  
  @Override
  public void error(Marker marker, String msg, Throwable t) {
    throw new UnsupportedOperationException();
    
  }
  
}
